<%@ page import="com.edu.entity.User" %>
<%@ page import="com.edu.service.UserService" %>
<%@ page import="com.edu.service.impl.UserServiceImpl" %><%--
  Created by IntelliJ IDEA.
  User: heci
  Date: 2024/9/14
  Time: 12:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>Insert title here</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }

    </style>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    String unum = request.getParameter("userNum");
    String upass = request.getParameter("userPass");
    String uname = request.getParameter("userName");
    User user = new User(unum,upass,uname);

    UserService userService = new UserServiceImpl();
    userService.add(user);
    response.sendRedirect("login.jsp");
%>
</body>
</html>
